package ModelLayer;

import java.util.ArrayList;

public class Invoice {
	private int invoiceNo;
	private int paymentDate;
	private int totalAmount;
	private int date;
	private ArrayList<SalesOrder> salesOrder;

	public Invoice() {

		salesOrder = new ArrayList<SalesOrder>();
	}

	public void addOrderLine(SalesOrder sales) {
		salesOrder.add(sales);
	}

	public void deleteOrderLine(SalesOrder sales) {
		salesOrder.remove(sales);
	}

	public int getInvoiceNo() {
		return invoiceNo;
	}

	public void setInvoiceNo(int invoiceNo) {
		this.invoiceNo = invoiceNo;
	}

	public int getPaymentDate() {
		return paymentDate;
	}

	public void setPaymentDate(int paymentDate) {
		this.paymentDate = paymentDate;
	}

	public int getTotalAmount() {
		return totalAmount;
	}

	public void setTotalAmount(int totalAmount) {
		this.totalAmount = totalAmount;
	}

	public int getDate() {
		return date;
	}

	public void setDate(int date) {
		this.date = date;
	}

}
